using System.IO;

namespace BSDS.Core.Data.Local.Schema
{
    public class XmlSchemaSerializer
    {
        public void Serialize(string xmlText, string filename)
        {
            using(var fileStream = new FileStream(filename, FileMode.CreateNew))
            using(var streamWriter = new StreamWriter(fileStream))
            {
                streamWriter.Write(xmlText);
            }
        }
    }
}